package cn.infrabase.token;

import cn.infrabase.CodeDescEnum;

/**
 * 令牌类型枚举。
 *
 * @author Weimin Gao
 * @since 1.0.0
 **/
public enum TokenType implements CodeDescEnum<String> {

	/**
	 * Json Web Token
	 */
	JWT("JWT","Json Web Token");

	private final String code;

	private final String desc;

	TokenType(String code,String desc){
		this.code = code;
		this.desc = desc;
	}

	@Override
	public String code() {
		return code;
	}

	@Override
	public String desc() {
		return desc;
	}
}
